package com.sea.physical.service;

import com.sea.physical.entity.Cabinet;

import java.util.List;

public interface CabinetService {

    /**
     * 多条件搜索
     * @param cabinet
     * @return
     */
    List<Cabinet> findByCnd(Cabinet cabinet);

    /**
     * 删除
     * @param id
     */
    int delete(Integer id);

    /**
     * 新增
     * @param cabinet
     * @return
     */
    int save(Cabinet cabinet);

    Cabinet findByName(String cabinetName);
}
